package com.ruoyi.service.account.enums;

import lombok.Getter;

/**
 * <p>
 * 作用：收入支出标记
 * </p>
 *
 * @author Zane
 * @since 2025-10-05 21:15
 */
@Getter
public enum IOFlagEnum {
  /**
   * 元/天；
   */
  IN(1, "收入"),
  /**
   * 元/条
   */
  OUT(-1, "支出");
  /**
   * 编码
   */
  private final int code;
  /**
   * 描述
   */
  private final String desc;

  IOFlagEnum(int code, String desc) {
    this.code = code;
    this.desc = desc;
  }

  public boolean eqCode(int code) {
    return this.code == code;
  }

}
